package cc.jorange.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.jorange.service.PosterService;

/**
 * 
 * @author Aaron
 *
 */
@Controller
@RequestMapping("/admin/poster")
public class PosterController {

	private final Logger logger = LoggerFactory.getLogger(PosterController.class);
	
	@Autowired
	private PosterService posterService;

	@RequestMapping(value = "/info", method = RequestMethod.GET)
	public String info(Model model) {
		model.addAttribute("poster", posterService.findAll());
		return "admin/poster/info";
	}

}
